import type { chartDataType } from "./chartType"
//设置颜色
type colorType = (arr:chartDataType[],color:string[])=>void
export const colorHandler:colorType= (arr,color)=>{
  arr.forEach((item, index) => {
    item.itemStyle = {
      color: color[index],
    };
  });
  
}